#!/bin/bash

# 测试脚本：使用mock连接运行STMROS节点

echo "Starting STMROS with mock connection..."

# 设置ROS环境
source /opt/ros/humble/setup.bash
source /home/xhome/project/stmros/install/setup.bash

# 运行STMROS节点，使用mock连接
# 通过参数设置连接URL
echo "Running STMROS node with mock connection..."
ros2 run stmros stmros_node --ros-args -p fcu_url:="mock://"

echo "STMROS node started with mock connection"